﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;

namespace TCPServer
{
    public class SocketDataType
    {
        private Socket _socket;
        private EndPoint _remoteEndPoint;
        private String _clientName;
        private Byte[] _key;

        public SocketDataType()
        {}

        public SocketDataType(Socket _socketIn, EndPoint _remoteEndPointIn, String _clientNameIn, Byte[] _keyIn)
        {
            _socket = _socketIn;
            _remoteEndPoint = _remoteEndPointIn;
            _clientName = _clientNameIn;
            _key = _keyIn;
        }

        public Socket SocketData
        {
            get { return _socket; }
            set { _socket = value; }
        }

        public EndPoint RemoteEndPointData
        {
            get { return _remoteEndPoint; }
            set { _remoteEndPoint = value; }
        }

        public String ClientNameData
        {
            get { return _clientName; }
            set { _clientName = value; }
        }

        public Byte[] KeyData
        {
            get { return _key; }
            set { _key = value; }
        }
    }
}
